<?php

class lb_smarty extends Smarty {
	
	public function __construct($tpldir=''){
		global $lb;
		
		@define('SMARTY_DIR', $lb['dir'] . 'include/Smarty/libs/');
		$this->template_dir = $lb['dir'] . 'templates/' . $lb['template'] . $tpldir;
		$this->compile_dir = $lb['dir'] . 'templates_c/';
		
		$this->security_settings['ALLOW_CONSTANTS'] = true;
	}
	
	public function tpl_dir($tpldir){
		global $lb;
		
		$this->template_dir = $lb['dir'] . 'templates/' . $lb['template'] . $tpldir;
	}
}

?>